package me.zhengjie.poemQuestions.service;

import com.baomidou.mybatisplus.extension.service.IService;
import me.zhengjie.poemQuestions.domain.PoemQuestions;

import java.util.List;

public interface PoemQuestionsService extends IService<PoemQuestions> {
    PoemQuestions getRandomQuestion();

    List<PoemQuestions> recommendWeakQuestions(Integer userId, int limitPerCategory, int categoryLimit);

    /**
     * 获取随机题目：当日限答一次，且不重复
     * @param userId 用户ID
     * @return 随机题目或提示信息
     */
    PoemQuestions getRandomQuestionForUser(Integer userId);
}
